package com.xiaoxing.zhinenghuacangku_liaocheng.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.xiaoxing.zhinenghuacangku_liaocheng.mvp.contract.LiaoCheng_TuiKuXuanZeContract;
import com.xiaoxing.zhinenghuacangku_liaocheng.mvp.model.LiaoCheng_TuiKuXuanZeModel;


@Module
public class LiaoCheng_TuiKuXuanZeModule {
    private LiaoCheng_TuiKuXuanZeContract.View view;

    /**
     * 构建LiaoCheng_TuiKuXuanZeModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public LiaoCheng_TuiKuXuanZeModule(LiaoCheng_TuiKuXuanZeContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    LiaoCheng_TuiKuXuanZeContract.View provideLiaoCheng_TuiKuXuanZeView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    LiaoCheng_TuiKuXuanZeContract.Model provideLiaoCheng_TuiKuXuanZeModel(LiaoCheng_TuiKuXuanZeModel model) {
        return model;
    }
}